/*
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
 * All portions are Copyright (C) 2008-2014 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
*/
package com.mes.manufacture.data;

import com.mes.data.EmesProcess;
import com.mes.quality.data.EmesqQualityPoorReason;

import java.math.BigDecimal;
import java.util.Date;

import org.openbravo.base.structure.ActiveEnabled;
import org.openbravo.base.structure.BaseOBObject;
import org.openbravo.base.structure.ClientEnabled;
import org.openbravo.base.structure.OrganizationEnabled;
import org.openbravo.base.structure.Traceable;
import org.openbravo.model.ad.access.User;
import org.openbravo.model.ad.system.Client;
import org.openbravo.model.common.enterprise.Organization;
/**
 * Entity class for entity Emeso_Remake (stored in table Emeso_Remake).
 *
 * NOTE: This class should not be instantiated directly. To instantiate this
 * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 */
public class EmesoRemake extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
    private static final long serialVersionUID = 1L;
    public static final String TABLE_NAME = "Emeso_Remake";
    public static final String ENTITY_NAME = "Emeso_Remake";
    public static final String PROPERTY_ID = "id";
    public static final String PROPERTY_EMESPROCESS = "emesProcess";
    public static final String PROPERTY_QTY = "qty";
    public static final String PROPERTY_ORGANIZATION = "organization";
    public static final String PROPERTY_CLIENT = "client";
    public static final String PROPERTY_ACTIVE = "active";
    public static final String PROPERTY_CREATIONDATE = "creationDate";
    public static final String PROPERTY_CREATEDBY = "createdBy";
    public static final String PROPERTY_UPDATED = "updated";
    public static final String PROPERTY_UPDATEDBY = "updatedBy";
    public static final String PROPERTY_DESCRIPTION = "description";
    public static final String PROPERTY_EMESQQUALITYPOORREASON = "emesqQualityPoorReason";
    public static final String PROPERTY_CODE = "code";
    public static final String PROPERTY_ISRECEIVED = "isreceived";
    public static final String PROPERTY_USERIDRECEIVE = "userIdReceive";
    public static final String PROPERTY_CONFIRMQTY = "confirmqty";
    public static final String PROPERTY_DIFFREASON = "diffReason";
    public static final String PROPERTY_ISINSPECTION = "isinspection";
    public static final String PROPERTY_USERIDINSPECTION = "userIdInspection";
    public static final String PROPERTY_DATEINSPECTION = "dateInspection";

    public EmesoRemake() {
        setDefaultValue(PROPERTY_ACTIVE, true);
        setDefaultValue(PROPERTY_ISRECEIVED, false);
        setDefaultValue(PROPERTY_ISINSPECTION, false);
    }

    @Override
    public String getEntityName() {
        return ENTITY_NAME;
    }

    public String getId() {
        return (String) get(PROPERTY_ID);
    }

    public void setId(String id) {
        set(PROPERTY_ID, id);
    }

    public EmesProcess getEmesProcess() {
        return (EmesProcess) get(PROPERTY_EMESPROCESS);
    }

    public void setEmesProcess(EmesProcess emesProcess) {
        set(PROPERTY_EMESPROCESS, emesProcess);
    }

    public BigDecimal getQty() {
        return (BigDecimal) get(PROPERTY_QTY);
    }

    public void setQty(BigDecimal qty) {
        set(PROPERTY_QTY, qty);
    }

    public Organization getOrganization() {
        return (Organization) get(PROPERTY_ORGANIZATION);
    }

    public void setOrganization(Organization organization) {
        set(PROPERTY_ORGANIZATION, organization);
    }

    public Client getClient() {
        return (Client) get(PROPERTY_CLIENT);
    }

    public void setClient(Client client) {
        set(PROPERTY_CLIENT, client);
    }

    public Boolean isActive() {
        return (Boolean) get(PROPERTY_ACTIVE);
    }

    public void setActive(Boolean active) {
        set(PROPERTY_ACTIVE, active);
    }

    public Date getCreationDate() {
        return (Date) get(PROPERTY_CREATIONDATE);
    }

    public void setCreationDate(Date creationDate) {
        set(PROPERTY_CREATIONDATE, creationDate);
    }

    public User getCreatedBy() {
        return (User) get(PROPERTY_CREATEDBY);
    }

    public void setCreatedBy(User createdBy) {
        set(PROPERTY_CREATEDBY, createdBy);
    }

    public Date getUpdated() {
        return (Date) get(PROPERTY_UPDATED);
    }

    public void setUpdated(Date updated) {
        set(PROPERTY_UPDATED, updated);
    }

    public User getUpdatedBy() {
        return (User) get(PROPERTY_UPDATEDBY);
    }

    public void setUpdatedBy(User updatedBy) {
        set(PROPERTY_UPDATEDBY, updatedBy);
    }

    public String getDescription() {
        return (String) get(PROPERTY_DESCRIPTION);
    }

    public void setDescription(String description) {
        set(PROPERTY_DESCRIPTION, description);
    }

    public EmesqQualityPoorReason getEmesqQualityPoorReason() {
        return (EmesqQualityPoorReason) get(PROPERTY_EMESQQUALITYPOORREASON);
    }

    public void setEmesqQualityPoorReason(EmesqQualityPoorReason emesqQualityPoorReason) {
        set(PROPERTY_EMESQQUALITYPOORREASON, emesqQualityPoorReason);
    }

    public String getCode() {
        return (String) get(PROPERTY_CODE);
    }

    public void setCode(String code) {
        set(PROPERTY_CODE, code);
    }

    public Boolean isReceived() {
        return (Boolean) get(PROPERTY_ISRECEIVED);
    }

    public void setReceived(Boolean isreceived) {
        set(PROPERTY_ISRECEIVED, isreceived);
    }

    public String getUserIdReceive() {
        return (String) get(PROPERTY_USERIDRECEIVE);
    }

    public void setUserIdReceive(String userIdReceive) {
        set(PROPERTY_USERIDRECEIVE, userIdReceive);
    }

    public BigDecimal getConfirmqty() {
        return (BigDecimal) get(PROPERTY_CONFIRMQTY);
    }

    public void setConfirmqty(BigDecimal confirmqty) {
        set(PROPERTY_CONFIRMQTY, confirmqty);
    }

    public String getDiffReason() {
        return (String) get(PROPERTY_DIFFREASON);
    }

    public void setDiffReason(String diffReason) {
        set(PROPERTY_DIFFREASON, diffReason);
    }

    public Boolean isInspection() {
        return (Boolean) get(PROPERTY_ISINSPECTION);
    }

    public void setInspection(Boolean isinspection) {
        set(PROPERTY_ISINSPECTION, isinspection);
    }

    public String getUserIdInspection() {
        return (String) get(PROPERTY_USERIDINSPECTION);
    }

    public void setUserIdInspection(String userIdInspection) {
        set(PROPERTY_USERIDINSPECTION, userIdInspection);
    }

    public Date getDateInspection() {
        return (Date) get(PROPERTY_DATEINSPECTION);
    }

    public void setDateInspection(Date dateInspection) {
        set(PROPERTY_DATEINSPECTION, dateInspection);
    }

}
